package cog.bengxiao.sms.business.user.services;

import cog.bengxiao.sms.business.user.mapper.CustomerInfoMapper;
import cog.bengxiao.sms.business.user.model.CustomerInfo;
import cog.bengxiao.sms.business.user.model.CustomerInfoExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServices {
    @Autowired
    private CustomerInfoMapper customerInfoMapper;

    public List<CustomerInfo> findCustomerInfoList(String username){
        CustomerInfoExample customerInfoExample = new CustomerInfoExample();
        customerInfoExample.createCriteria().andUsernameEqualTo(username);
        List<CustomerInfo> list = customerInfoMapper.selectByExample(customerInfoExample);
        return list;
    }
}
